using UnityEngine;
using System.Collections;

[ExecuteInEditMode]
public class RespawnPoint : MonoBehaviour {
	//public respawnHandler Handler;
	public bool showSpawnPoints 	= true;
	private RespawnHandler handler 	= null;
	
	// Use this for initialization
	void Start () {
		handler = this.transform.parent.gameObject.GetComponent<RespawnHandler>();
		handler.addPoint(gameObject);
	}
	
	void OnDrawGizmos () {
		Debug.DrawRay(
			this.transform.position,
			this.transform.up + new Vector3(0, 500, 0),
			Color.green
		);
	}
}